package com.book.entity;


import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 
 * 
 * @author yang
 * @email yang@gmail.com
 * @date 2020-12-05 15:21:51
 */
@Data
@TableName("t_order_item")
@AllArgsConstructor
@NoArgsConstructor
public class OrderItemEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * id
	 */
	@TableId
	private Long id;
	/**
	 * 图书id
	 */
	private Long bookId;
	/**
	 * 用户id
	 */
	private Long userId;
	/**
	 * 订单编号
	 */
	private String orderId;




	private String bookName;
	private BigDecimal price;
	private Integer count;
	private BigDecimal totalPrice;


	@TableField(fill = FieldFill.INSERT_UPDATE)
	private Date createtime;


}
